//引入一级路由 
import Index from '../views/Index'
//引入详情
import Detaile from '../views/Detaile'
//引入登录
import Login from '../views/Login'
//引入我的资料
import My from '../views/My'
//引入修改
import Change from '../views/Change'
//引入搜索页面
import Search from '../views/Search'
//引入文章详情
import Article from '../views/Article'
//引入排行详情
import Ranking from '../views/Ranking'
import MyDetail from '../views/MyDetail'
//引入二级路由
import First from '../views/First'
import Classify from '../views/Classify'
import Message from '../views/Message'
import Mine from '../views/Mine'

const routeData=[
    {
        path:'/index',
        component:Index,
        children:[
            {
                path:'/index/first',
                component:First
            },
            {
                path:'/index/classify',
                component:Classify
            },
            {
                path:'/index/message',
                component:Message
            },
            
            {
                path:'/index/mine',
                component:Mine
            },
            {
                path:'/index/my',
                component:My
            },
            {
                path:'/index',
                redirect:'/index/first'
            },
            
        ]
    },
    {
        path:'/detaile',
        component:Detaile
    },
    {
        path:'/login',
        component:Login
    },
    {
        path:'/change',
        component:Change
    },
    {
        path:'/search',
        component:Search
    },
    {
        path:'/article',
        component:Article
    },
    {
        path:'/ranking',
        component:Ranking
    },
    {
        path: "/mydetail",
        component:MyDetail
      },
    {
        path:'/',
        redirect:'/index'
    }
]
export default routeData